import getReq from '../../../services/_utils/req';
Page({
  data: {
    list: [],
    arr: [],
  },
  async init() {},
  toJump(e) {
    wx.navigateTo({
      url: `/pages/goods/wzxq/index?id=${e.currentTarget.dataset.id}`,
    });
  },

  async onShow() {
    this.getTabBar().init();
    const { data } = await getReq('/api/v1/article/queryAllInfo', 'POST', {
      current: 1,
      size: 999,
    });
    this.setData({
      arr: data,
    });
  },
  onChange() {
    wx.navigateTo({
      url: `/pages/goods/list/index`,
    });
  },
  onLoad() {
    this.init(true);
  },
});
